<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>登陆::绿岸网络科技</title>
<link href="/themes/css/login.css" rel="stylesheet" type="text/css" />
<script src="/scripts/jquery/jquery.js"></script>
<script src="/js/common.js"></script>
<script>
$(function (){
    $('#img-verifycode').click(function (){
        var self = this;
        $.get(location.pathname, 'verifycode=refresh', function (d){
            self.src = d.verifycode;
            $('[name=verifycode]').val('');
        });
    });
});
function login(form){
    $.post(location.href, $(form).serialize(), function (d){
        if (!d.statusCode)
            window.location.href = '/';
        else {
            switch (d.statusCode) {
                case 3:
                    $('[name=verifycode]').val('').focus();
                    break;
                case 2: case 4:
                    $('#username,#password').val('').eq(0).focus();
                    break;
                case 1:
                    $('#passpod').val('').focus();
                    break;
                default:
                    break;
            }
            $('#img-verifycode').attr('src', d.verifycode);
            alert(d.message);
        }
    });
}
</script>
</head>

<body>
    <div id="login">
        <div id="login_header">
            <h1 class="login_logo">
                <a href="#"><img src="/themes/default/images/logo.png" alt="LOGO" /></a>
            </h1>
            <div class="login_headerContent">
            <!--
                <div class="navList">
                    <ul>
                        <li><a href="#">设为首页</a></li>
                        <li><a href="#">反馈</a></li>
                        <li><a href="#" target="_blank">帮助</a></li>
                    </ul>
                </div>
                 -->
                <h2 class="login_title"><img src="/themes/default/images/login_title.jpg" align="absmiddle" />后台登录</h2>
            </div>
        </div>
        <div id="login_content">
            <div class="loginForm">
                <form id="form1" name="form1" method="post" action="" onsubmit="login(this);return false;">
                    <p>
                        <label>用户名：</label>
                        <input name="username" type="text" id="username" class="login_input" />
                    </p>
                    <p>
                        <label>密码：</label>
                        <input name="password" type="password" id="password" class="login_input" />
                    </p>
                    <p>
                        <label>密保：</label>
                        <input name="passpod" <?php echo $this->enableCryptoguard ? '' : 'disabled'?> type="password" id="passpod" class="login_input" maxlength="8" />
                    </p>
                    <p>
                        <label>验证码：</label>
                        <input class="code" type="text" name="verifycode" size="5" />
                        <span><img id="img-verifycode" src="<?php echo $this->verifycode ?>" height=25 /></span>
                    </p>
                    <div class="login_bar">
                        <input class="sub" type="submit" value=" " />
                    </div>
                </form>
            </div>
            <div class="login_banner"><img src="/themes/default/images/login_banner.jpg" /></div>
            <div class="login_main">
            <!--
                <ul class="helpList">
                    <li><a href="#"></li>
                </ul>

                <div class="login_inner">
                    <p>您可以使用</p>
                </div>
                -->
            </div>
        </div>
        <div id="login_footer">
            Copyright &copy; 2009 Green Shore (http://www.iwgame.com)
        </div>
    </div>
</body>
</html>

